﻿<?xml version="1.0" encoding="utf-8"?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
                   assembly="Modelo"
                   namespace="Modelo.Dominio">
  <class table="reserva" name="Reserva">
    <id name="Id" column="id">
      <generator class="identity" />
    </id>
    <property name="DataInicio" column="data_inicio" not-null="true" />
    <property name="DataFim" column="data_fim" not-null="true" />
    <property name="Estado" column="estado" not-null="true" />
    <many-to-one name="CategoriaDeQuarto" column="id_categoria_de_quarto" lazy="false" />
    <many-to-one name="Cliente" column="id_cliente" lazy="false" />
  </class>
</hibernate-mapping>